package cn.edu.zafu.bigdata.x.xiejunjie.例4_13;

public class Outer {
    private int size = 5;

    public Object makeInner(final int finalLocalVar){
        int LocalVar = 6;
        class Inner{
            @Override
            public String toString() {
                return ("#<Inner size="+size+
                        //"localVar="+localVar+//
                " finalLocalVar="+finalLocalVar+">");
            }
        }
        return new Inner();
    }

    public static void main(String[] args) {
        Outer outer = new Outer();
        Object obj = outer.makeInner(40);
        System.out.println("The object is"+obj.toString());
    }
}
